<!DOCTYPE html>
<html>

<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
    <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>

</head>

<body>
    <div class="container">
        <h2>表格</h2>
        <span> .table 为任意表格添加基本样式 (只有横向分隔线):</span>
        <table class="table table-hover">
            <thead>
                <tr>
                    <th scope="col">#</th>
                    <th scope="col">Firstname</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <th scope="row">1</th>
                    <td>Anna</td>
                </tr>
                <tr>
                    <th scope="row">2</th>
                    <td>Debbie</td>
                </tr>
                <tr>
                    <th scope="row">3</th>
                    <td>John</td>
                </tr>
            </tbody>
        </table>
    </div>
</body>

</html>